package com.gxuwz.com_property.notice.service.Impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gxuwz.com_property.notice.dto.NoticeDto;
import com.gxuwz.com_property.notice.mapper.NoticeMapper;
import com.gxuwz.com_property.notice.pojo.Notice;
import com.gxuwz.com_property.notice.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class NoticeServiceImpl implements NoticeService {
    @Autowired
    private NoticeMapper noticeMapper;


    @Override
    public Boolean addNoticeInfo(Notice notice) {
        return noticeMapper.addNoticeInfo(notice);
    }

    @Override
    public Boolean updateNoticeInfo(Notice notice) {
        return noticeMapper.updateNoticeInfo(notice);
    }

    @Override
    public Boolean deleteNoticeByIdInfo(int id) {
        return noticeMapper.deleteNoticeByIdInfo(id);
    }

    @Override
    public Notice findNoticeByNotice(Notice notice) {
        return noticeMapper.findNoticeByNotice(notice);
    }

    @Override
    public IPage<Notice> selectRepairByPage(Page<Notice> page, NoticeDto noticeDto) {
        return noticeMapper.selectNoticeByPage(page,noticeDto);
    }
}
